const express = require('express');
const router = express.Router();
// 索赔费用报表(1)-不勾选同比与环比
router.get('/settlementCost', (req, res) => {
    res.json({
        message: '',
        payload: [
            {
                id: 'string',
                region: '全球',
                dealerCode: '/',
                dealerName: '/',
                market: '/',
                time: '2020-01-01---2020-03-31',
                applicationFee: '123',
                materialFee: '344',
                materialManagementFee: '235',
                workingHoursFee: '93',
                accessoriesFee: '32',
                settlementAmount: '722',
                settlementApplicationRate: '0.35',
                settlementCycle: '7.2',
                billCycle: '5'
            }
        ]
    });
});
// 索赔费用报表(1)-勾选同比
router.get('/settlementCost/yearOnYear', (req, res) => {
    res.json({
        message: '',
        payload: [
            {
                id: 'strin1',
                month: '1月',
                startClaimFee: 25123,
                endClaimFee: 21344,
                changeRate: -0.15
            },
            {
                id: 'strin2',
                month: '2月',
                startClaimFee: 4135234,
                endClaimFee: 1341235,
                changeRate: -0.68
            },
            {
                id: 'strin3',
                month: '3月',
                startClaimFee: 12234,
                endClaimFee: 23412,
                changeRate: 0.91
            },
            {
                id: 'strin4',
                month: '4月',
                startClaimFee: 11234125,
                endClaimFee: 21341235,
                changeRate: 0.90
            },
            {
                id: 'strin5',
                month: '5月',
                startClaimFee: 12216280,
                endClaimFee: 21342269,
                changeRate: 0.75
            },
            {
                id: 'strin6',
                month: '6月',
                startClaimFee: 11703881.1,
                endClaimFee: 26506454,
                changeRate: 1.26
            },
            {
                id: 'strin7',
                month: '7月',
                startClaimFee: 11204081.7,
                endClaimFee: 31670639,
                changeRate: 1.83
            },
            {
                id: 'strin8',
                month: '8月',
                startClaimFee: 23469282.3,
                endClaimFee: 36834824,
                changeRate: 0.57
            },
            {
                id: 'strin9',
                month: '9月',
                startClaimFee: 30418482,
                endClaimFee: 41999009,
                changeRate: 0.38
            },
            {
                id: 'strin10',
                month: '10月',
                startClaimFee: 96768233.5,
                endClaimFee: 47163194,
                changeRate: -0.51
            },
            {
                id: 'strin11',
                month: '11月',
                startClaimFee: 91628842,
                endClaimFee: 52327379,
                changeRate: -0.43
            },
            {
                id: 'strin12',
                month: '12月',
                startClaimFee: 82266084.7,
                endClaimFee: 57491564,
                changeRate: -0.3
            }
        ]
    });
});
// 索赔费用报表(1)-勾选环比
router.get('/settlementCost/linkRatio', (req, res) => {
    res.json({
        message: '',
        payload: [
            {
                id: '1',
                region: '巴西',
                dealerCode: '15665',
                dealerName: '/',
                market: '巴西',
                n1: 24,
                n2: 35,
                n3: 29,
                n4: 28,
                n5: 21,
                n6: 23,
                n7: 27,
                n8: 26,
                n9: 25,
                n10: 29,
                n11: 25,
                n12: 22,
            }, {
                id: '2',
                region: '埃及',
                dealerCode: '15796',
                dealerName: '/',
                market: '埃及',
                n1: 26,
                n2: 21,
                n3: 22,
                n4: 24,
                n5: 20,
                n6: 23,
                n7: 24,
                n8: 26,
                n9: 29,
                n10: 19,
                n11: 21,
                n12: 27,
            },
        ]
    });
});
// 结算周期报表(2)-不勾选同比和环比
router.get('/billingCycle', (req, res) => {
    res.json({
        message: '',
        payload: [
            {
                id: '1',
                region: '中南美',
                dealerCode: '15665',
                dealerName: '巴西',
                market: '巴西',
                settlementNum: '15665B20200301',
                applicationMonth: 2,
                reviewCompletionDate: '8.9',
                preSettlementTime: '7',
                settlementTime: '3',
                PIUploadTime: '3',
                reportToFinanceTime: '5',
                accountTime: '3',
                cumulativeSettlementBusiness: 25,
                cumulativeSettlementBill: 55,
                settlementAmount: 44214
            }, {
                id: '2',
                region: '北美',
                dealerCode: '18365',
                dealerName: '美国',
                market: '美国',
                settlementNum: '15665B20200301',
                applicationMonth: 2,
                reviewCompletionDate: '8.9',
                preSettlementTime: '7',
                settlementTime: '3',
                PIUploadTime: '3',
                reportToFinanceTime: '5',
                accountTime: '3',
                cumulativeSettlementBusiness: 25,
                cumulativeSettlementBill: 45,
                settlementAmount: 12345
            }
        ]
    });
});

// 结算周期报表(2)-勾选同比
router.get('/billingCycle/yearOnYear', (req, res) => {
    res.json({
        message: '',
        payload: [
            {
                id: 'strin1',
                month: '1月',
                startSettlementCycle: 25123,
                endSettlementCycle: 21344,
                changeRate: -0.25
            }, {
                id: 'strin2',
                month: '2月',
                startSettlementCycle: 21123,
                endSettlementCycle: 27144,
                changeRate: -0.35
            }, {
                id: 'strin3',
                month: '3月',
                startSettlementCycle: 2423,
                endSettlementCycle: 2244,
                changeRate: -0.45
            }, {
                id: 'strin4',
                month: '4月',
                startSettlementCycle: 25123,
                endSettlementCycle: 21344,
                changeRate: -0.15
            }, {
                id: 'strin5',
                month: '5月',
                startSettlementCycle: 25123,
                endSettlementCycle: 21344,
                changeRate: -0.55
            }, {
                id: 'strin6',
                month: '6月',
                startSettlementCycle: 25123,
                endSettlementCycle: 21344,
                changeRate: -0.65
            }, {
                id: 'strin7',
                month: '7月',
                startSettlementCycle: 25123,
                endSettlementCycle: 21344,
                changeRate: 0.75
            }, {
                id: 'strin8',
                month: '8月',
                startSettlementCycle: 25123,
                endSettlementCycle: 21344,
                changeRate: -0.85
            }, {
                id: 'strin9',
                month: '9月',
                startSettlementCycle: 25123,
                endSettlementCycle: 21344,
                changeRate: -0.95
            }, {
                id: 'strin10',
                month: '10月',
                startSettlementCycle: 25123,
                endSettlementCycle: 21344,
                changeRate: -0.235
            }, {
                id: 'strin11',
                month: '11月',
                startSettlementCycle: 25123,
                endSettlementCycle: 21344,
                changeRate: -0.35
            }, {
                id: 'strin12',
                month: '12月',
                startSettlementCycle: 25123,
                endSettlementCycle: 21344,
                changeRate: -0.35
            }
        ]
    });
});
// 结算周期报表(2)-勾选环比
router.get('/billingCycle/linkRatio', (req, res) => {
    res.json({
        message: '',
        payload: [
            {
                id: '1',
                region: '巴西',
                dealerCode: '15665',
                dealerName: '/',
                market: '巴西',
                n1: 24,
                n2: 25,
                n3: 23,
                n4: 28,
                n5: 21,
                n6: 23,
                n7: 27,
                n8: 26,
                n9: 25,
                n10: 29,
                n11: 25,
                n12: 22,
            }, {
                id: '2',
                region: '埃及',
                dealerCode: '15796',
                dealerName: '/',
                market: '埃及',
                n1: 26,
                n2: 22,
                n3: 25,
                n4: 24,
                n5: 20,
                n6: 23,
                n7: 24,
                n8: 26,
                n9: 29,
                n10: 19,
                n11: 21,
                n12: 27,
            },
        ]
    });
});
//索赔费用报表-审核者(3)
router.get('/rejectTrue', (req, res) => {
    res.json({
        message: '',
        payload: [
            {
                id: '1',
                auditorName: '何飞',
                dealerCode: '15665',
                dealerName: '巴西',
                market: '巴西',
                time: '2020-01-01 -- 2020-03-31',
                applicationFee: 49214,
                materialFee: 14024.3,
                materialManagementFee: 10518.44,
                workingHoursFee: 19297,
                accessoriesFee: 374.26,
                settlementAmount: 44214,
                settlementApplicationRate: 0.8984,
                settlementCycle: 25,
                billCycle: 55
            }
        ]
    });
});
module.exports = router;
